<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<HEAD><TITLE>部门管理</TITLE><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/ceng.css"></LINK><LINK rel=stylesheet type=text/css href="/loan/common/sharecss/style51.css" media=screen></LINK>
<SCRIPT type=text/javascript src="/loan/dwr/engine.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/util.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/dwr/interface/Share_ceng.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/nav.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/validate.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-1.4.2.min.js"></SCRIPT>
<!--<script type="text/javascript" src="/loan/common/sharejs/jquery.ui.draggable.js"></script>--><!-- 日期控件 -->
<SCRIPT language=javascript type=text/javascript src="/loan/common/sharejs/DatePicker/WdatePicker.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="http://localhost:8088/loan/common/sharejs/DatePicker/skin/WdatePicker.css"><LINK rel=stylesheet type=text/css href="/loan/common/sharejs/DatePicker/skin/default/datepicker.css"><!-- 日期控件 --><!-- 提示框 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery.alerts.js"></SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/jquery-ui-1.8.5.custom.js"></SCRIPT>
<LINK rel=stylesheet type=text/css href="/loan/common/sharecss/jquery.alerts.css" media=screen></LINK><!-- xyTree --><!-- 提示框 --><!-- 填充IPage中获取的数据到Div中 -->
<SCRIPT type=text/javascript src="/loan/common/sharejs/pageFillData.js"></SCRIPT>
<!-- 填充IPage中获取的数据到Div中end -->
<SCRIPT type=text/javascript>
/**
var url=document.URL;
url=url.replace("/","\\");
var url_chefen=url.split("/");
var url_sel=new Array();
var nav="";
var j=0;
if(url_chefen.length>0){
	DWREngine.setAsync(false);   //设置成同步
	for(var i=url_chefen.length-1;i>-1;i--){
		if(url_chefen[i]=="loan"){
			break;
		}else{
			url_sel[j]=url_chefen[i];
			//alert(url_chefen[i]);
			j++;
		}
	}
	var menu=new Array(2);
	for(var k=0;k<url_sel.length;k++){
		if(url_sel[k].length>0&&k==url_sel.length-1){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav=data[0]+nav;
						menu[1]=data[1];
					}
				}
			});
			if(nav.length>3){
				if(nav.substr(0,3)=="-->"){
					nav=nav.substr(3);
				}
			}
		}else if(url_sel[k].length>0){
			menu[0]=url_sel[k];
			Share_ceng.menu_nav(menu,function(data){
				if(data[0]!=undefined){
					if(data[0].length>0){
						nav="-->"+data[0]+nav;
						menu[1]=data[1];
					}
				}
			})
		}
		if(nav.length<1){
			break;
		}
	}
	if(window.parent.document.getElementById("position")!=undefined&&nav.length>0){
		window.parent.document.getElementById("position").innerText=nav;
	}
	DWREngine.setAsync(true); //设置成异步
}**/
//nav.js已经存在
</SCRIPT>

<SCRIPT>
function do_download(filename,type,localname){
    
	if(typeof(type)==undefined){
		type='2';
	}else if(type.length==0){
		type='2';
	}
	if(typeof(localname)==undefined){
		localname="";
	}
	Share_ceng.getDownfile(type,filename,function(data){
	
	    
		if(data!=undefined){
			if(data.length>0){
				var str=data.split("*@@*");
				
				if(str[0]=="error"){
					jAlert('1',"<strong>"+str[1]+"</strong>", '文件下载');
				}else{
				
				
				    var tmpAry=data.split("\\");
				    var filePath="";
				    var fileNme=tmpAry[tmpAry.length-1];
				    
				    
				    
				    
					window.location.href="/loan/upload/download/download.jsp?filepath="+data+"&filename="+fileNme;
				}
			}else{
				jAlert('1',"<strong>获取文件下载路径错误！</strong>", '文件下载');
			}
		}else{
			jAlert('1',"<strong>获取文件下载路径失败！</strong>", '文件下载');
		}
	});
}


function logout(){
  alert('会话过期，为确保安全，请您重新登录');
  	window.top.location.href="/loan/login.do?method=logout";
}
function enter(){
		 var code = window.event.keyCode;   
		 if(code==13){    
    			my_search();   
  		 }   
	}
$(document).ready(function(){
	var temp=$('#btnsreatch');
	var a='搜';
	var tmp=$('input[value*='+a+']');//模糊匹配出'搜'的属性注册事件
	if(tmp!="undefined"&&tmp!=null){
		for(var i=0;i<tmp.length;i++){
			tmp.get(i).onkeyup=enter;
		}
	}
	
//	$.each(tmp,function(){
//		alert(tmp.get(0).value);
		






// 	})
})
</SCRIPT>

<SCRIPT type=text/javascript src="/loan/common/sharejs/htgl/htgl.js"></SCRIPT>
<!-- dwr -->
<SCRIPT type=text/javascript src="/loan/dwr/interface/bctlService.js"></SCRIPT>
<!-- 弹出层 -->
<SCRIPT type=text/javascript charset=gbk src="/loan/common/sharejs/selectDiv.js"></SCRIPT>
<!-- 弹出层 -->
<SCRIPT type=text/javascript>
		
		var removeData=new Array();//撤销部门放大镜数据集
	    var removeToData=new Array();//合并部门放大镜数据集
		var empData=new Array();//部门负责人放大镜数据集
		var searchFlag=1;  //标示my_search（） 用来展示那个列表：1：部门列表 2:--额度列表；
        var openflag =1;
       $(function(){
		 	$('#tabs >li').click(function(){
							//获得点击的是第几个选项
							var index = $(this).attr('value');
							
							if(openflag==2)
								   if(!confirm("是否要放弃本次操作？"))
								      return false;
							if(index!=openflag){
							     var mylink = '#link'+openflag;
							     $(mylink).removeClass('dd_over');
							      $(mylink).addClass('dd');
							      mylink = '#link'+index;
							      $(mylink).addClass('dd_over');
							       $(mylink).removeClass('dd');
							    $('.nr[value='+openflag+']').css('display','none');
								$('.nr[value='+index+']').css('display','block');
								openflag = index;
								
								if(openflag!=2)
								    $('#link2').css('display','none');
								    if(openflag!=5)
								    $('#link5').css('display','none');
								     if(openflag!=6)
								    $('#link6').css('display','none');
								}
				})
				})
				

				//为部门信息赋值：
				function  initBtclInfo(bctlno,bctlname,fzr,tel,fax,adr,upone,yzbm)
				{
				  // BRNO,BRNAME,BRINIT,BRTEL,BRFAX,BRADRS1,UPONEORG,AFCBV
				document.getElementById("BRNO").value=bctlno;
				document.getElementById("BRNAME").value=bctlname;
				document.getElementById("BRINIT").value=fzr;
				document.getElementById("BRTEL").value=tel;
				document.getElementById("BRFAX").value=fax;
				document.getElementById("BRADRS1").value=adr;
				document.getElementById("UPONEORG").value=upone;
				document.getElementById("AFCBV").value=yzbm;
				}
				
				//展示部门编辑页面；
			    function  	bctlEditeFun(bctlno,bctlname,fzr,tel,fax,adr,upone,yzbm)
			    {
			         setOneLiTabShow('6','2');  //打开部门信息编辑层；
			         if(bctlno=='') //如果是新增；
			         {
			             //为表单赋值：
			             setFormNull('bctlFormEdite');
			             //更改提示和action属性；
			             var tmpForm=document.getElementById("bctlFormEdite");
			             $('#link2').html("部门新增");
			             tmpForm.action="add";
			             showAddUpOrgDiv();
			         }
			         else
			         {
			              initBtclInfo(bctlno,bctlname,fzr,tel,fax,adr,upone,yzbm);
			              var tmpForm=document.getElementById("bctlFormEdite");
			             $('#link2').html("部门修改");
			              tmpForm.action="upd";
			              showUpOrgDiv();//为部门添加放大镜；
			              
			         }
			         
			        
			    }
			    
			    
			    //展示部门列表；
			    
			    function   my_search(pageNo,pageSize)
			    {
			      $('#link2').css('display','none');
			       $('#link5').css('display','none');
			       $('#link6').css('display','none');
			     if(searchFlag=='1'){
			       setOneLiTabShow('6','1');  //打开部门列表层；
			        
			       var search =$('#search').val();
			       bctlService.getBctlList(search,pageNo,pageSize,function(data){
			              fillData('bctlListShowDiv',data);
			       });
			       
			       }else
			       {
			            setOneLiTabShow('6','4');  //打开部门列表层；
			            var search=$('#edsearch').val();
			            bctlService.getCrappctrlList(pageNo,pageSize,search,function(data){
			                   fillData('edListDiv',data);
			                   
			            });
			       }
			       
			    }
			    
				
				
				//提交时表单判断；
				function checkSubmit(frm)
				
				{
	
				   if(!(isNull(frm.BRNAME,"部门名称"))) {
		              return false;
	               }
	               /* 先注释：负责人不是必选项；
	               if(!(isNull(frm.BRINIT,"负责人"))) {
		              return false;
	               }
	               */
	               
	               if(!(isNull(frm.UPONEORG,"上级部门"))) 
	               {
		              return false;
	               }
	               
	               
	               var ifBctlExistVal=true;
	               
	               bctlService.ifBctlExist(frm.UPONEORG.value,function (data)
	               {
	                    ifBctlExistVal=data;
	               });
	               
	               if(!ifBctlExistVal)
	               {
	                   jAlert('1','所选上级部门不存在','消息提示',function (){
	                      frm.UPONEORG.select();
	                   });
	                   return false;
	               }
	               
	               
	               
	               if(frm.UPONEORG.value==frm.BRNO.value)
	               {
	                   jAlert('1','上级部门编号不能和当前部门编号相同','消息提示',function (){
	                       frm.UPONEORG.select();
	                   });
	                   return false;
	               }
	               
	                if(!(isNull(frm.AFCBV,"邮政编码"))) {
		              return false;
	               }
	               
	               if((frm.AFCBV.value.length!=6))
	               {
	                  jAlert('1','邮政编码必须为6位数字','消息提示',function (){
	                      frm.AFCBV.select();
	                      return  false;
	                  });
	                  return false;
	               }
	               
	               if(!isNumber(frm.AFCBV,"邮政编码"))
	               {
	                   return  false;
	               }
	               
	                if(!(isNull(frm.BRTEL,"联系电话"))) {
		              return false;
	                }
	                
	                if(!isPhoneForGSNX(frm.BRTEL,'联系电话'))
	                {
	                   return false;
	                }
	                
	                
	                if(frm.BRFAX.value!='')
	                {
	                    if(!checkTel(frm.BRFAX))
	                    {
	                       return  false;
	                    }
	                }
	                
	               var tmpAction=frm.action;
	               
	               if(tmpAction=='add')
	               {
	                  jConfirm('请在保存前仔细核对确保信息无误，尤其是<strong>上一级部门号</strong>。\n保存请点确定，核对信息请点取消。', '提示确认框', function(data) {
								  if(data){
								         var bctlmap = DWRUtil.getValues('bctlFormEdite');  
                                          bctlService.bctlAdd(bctlmap,function(addData){
                                          if(addData>0)
                                          {
                                              jAlert('1','添加成功！',  '消息提示',function(data){
                                              	 my_search();
                                              });
                                          }
                                          else
                                          {
                                              jAlert('1','添加失败！',  '消息提示',function(data){
                                              	 my_search();
                                              });
                                          }
                                          
                                          });
						           }
								  });
	               }
	               
	               else
	               {
	                   var bctlmap = DWRUtil.getValues('bctlFormEdite');  
                                          bctlService.bctlUpdate(bctlmap,function(addData){
                                          if(addData>0)
                                          {
                                              jAlert('1','修改成功！', '消息提示',function(data){
                                              	 my_search();
                                              });
                                             
                                          }
                                          else
                                          {
                                              jAlert('1','修改失败！', '消息提示',function(data){
                                              	 my_search();
                                              });
                                          }
                                          
                                          });
	               }
	               
	               	               /*
	                jConfirm('请在保存前仔细核对确保信息无误，尤其是<strong>上一级部门号</strong>。\n保存请点确定，核对信息请点取消。', '提示确认框', function(data) {
								  if(data){
								     frm.submit();
						           }
								  });
								  
								  */

				}
				//全部选中；
				function selectAll(obj)
				{
				    
				    var tmpSelected=obj.checked;
				    
				    var checkboxObjs=document.all("bctlno");
				    for(var i=0;i<checkboxObjs.length;i++)
				    {
				       checkboxObjs[i].checked=tmpSelected;
				    }
				}
				
				DWREngine.setAsync(false); //关掉异步执行；
				
				//删除部门；
				function   delSelectedBctl(bctlno)
				{
				     
				    
				    if(bctlno.length==0)
				    {
				        jAlert('1','请选择要删除的项','消息提示');
				        return false; 
				    }
				    else
				    {
				      ifHasBusiness(bctlno);
				      if(ifHasBus)
				      {
				          
				         jAlert('1','该部门还有员工，不能删除', '消息提示');
				         return ;
				      }
				      else
				      {
				      jConfirm('你确实要<strong>删除</strong>该部门吗', '提示确认框', function(data) {
								  if(data){
								  
								       bctlService.bctlDel(bctlno,function(delData){
								          if(delData>0)
								          {
								               jAlert('1','删除成功', '消息提示',function(){
								               
								                   my_search();
								               });
								          }
								          else
								          {
								               jAlert('1','删除失败', '消息提示',function(){
								               
								                   my_search();
								               });
								          }
								       });
								  }
								  
								  });
				      
				      /*
				         if(confirm('你确实要删除该部门吗？'))
				       {
				         
				          document.location.href="bctl.do?method=bctlDel&delstr="+bctlno;
				        }
				        */
				      }
				      ifHasBus="";
				    }
				}
				
				//查看部门是否有 业务：
				var ifHasBus;
				function ifHasBusiness(bctlno)
				{
				    bctlService.ifHasBusiness(bctlno,bctlHasBus);
				}
				function bctlHasBus(data)
				{
				     ifHasBus=data;
				}
			
				//为表格添加背景色；
			
			/*
				function setbgColor()
				{
				  $("tr:even").atrr("class","os");
				  $("tr:odd").atrr("class","js");
				}
				
				*/
	// 选择撤销行号、合并行号 
function my_check(FormName)
{
	 sCxBrno=document.all("name1").value;
	 //sCxBrname=document.all("name2").value;
	 sHbBrno=document.all("name3").value;
	// sHbBrName=document.all("name4").value;
	 if(typeof(sCxBrno)=="undefined" || sCxBrno.length==0 ) 
	 {
	    jAlert("1","请选择撤销部门代码","消息提示",function ()
	    {
	         document.all("name1").select();
	    });
	    return false;
	 }
	 
	 
	 var ifBctlExistVal=true;
	               bctlService.ifBctlExist(sCxBrno,function (data)
	               {
	                    ifBctlExistVal=data;
	               });
	               
	               if(!ifBctlExistVal)
	               {
	                   jAlert('1','所选撤销部门代码不存在','消息提示',function (){
	                      document.all("name1").select();
	                   });
	                   return false;
	               }
	 
	 
	       if(!validateData(document.all("name1Val"),removeData,1,"撤销部门名称")){
	          return false;
           }
	       
	 
	 if(typeof(sHbBrno)=="undefined"||sHbBrno.length==0)
	 {
	 
	 
	    jAlert("1","请选择合并部门!","消息提示",function ()
	    {
	         document.all("name3").select();
	    });
	    return false;
	 }
	 
	 
	     ifBctlExistVal=true;
	               bctlService.ifBctlExist(sHbBrno,function (data)
	               {
	                    ifBctlExistVal=data;
	               });
	               
	               if(!ifBctlExistVal)
	               {
	                   jAlert('1','所选合并部门不存在','消息提示',function (){
	                      document.all("name3").select();
	                   });
	                   return false;
	               }
	               
	               
	                if(!validateData(document.all("name3Val"),removeToData,1,"撤销部门名称")){
	                return false;
                    }
	 
	 
	 if(sCxBrno==sHbBrno){
	 	
	 	jAlert("1","合并部门与撤销部门不能相同！","消息提示",function ()
	    {
	         document.all("name3").select();
	    });
	 	return false;
	 }
	 
	 
	 var ifHasSubBctl=true; //撤销的部门是否有子部门
	 
	 bctlService.getAddBctlSelectList(sCxBrno,function (data)
	 {
	     if(data.length>1)
	     {
	        ifHasSubBctl=true;
	     }
	     else
	     {
	        ifHasSubBctl=false;
	     }
	     
	 });
	 
	
	if(ifHasSubBctl)
	{
	    jAlert('1','<strong>撤销部门['+sCxBrno+']还有子部门，请先撤销它的子部门</strong>','消息提示',function ()
	    {
	        return  false;
	    });
	    return  false;
	}
	 
	/*
	 ifHasBusiness(sCxBrno);//检查该部门是否有业务
	 if(ifHasBus)
	 {
	    alert("该部门还有业务,部门被撤销！");
	    return false;
	    
	 }
	 else*/
	 
	 
jConfirm('<strong>确认将部门['+sCxBrno+']合并到部门['+sHbBrno+']吗？</strong>', '提示确认框', function(data)
{
    if(data)
    {
           bctlService.unionBctlOP(sHbBrno,sCxBrno,function  (opData){
           
               if(opData>0)
               {
                    jAlert('1','<strong>合并成功</strong>','消息提示',function(){
                       my_search();
                    });
               }
               else
               {
                    jAlert('1','<strong>合并失败</strong>','消息提示',function (){
                       my_search();
                    });
               }
            
            });
    }
    else
    {
       return false; 
    }

});
	 
	 /*
	 if(confirm('确认将部门['+sCxBrno+']合并到部门['+sHbBrno+']吗？')){
    		document.getElementById("showDoing").value="数据处理中，请稍候...";
       		FormName.submit();
    }
    */
	 
} 
		
		//展示额度列表
		function  showListShow(pageno,pagesize)
		{
		    setOneLiTabShow('6','4');//打开额度列表层；
		    showCrAppList('1','5');//为列表层赋值；
		    
		}		
	  //展开控制额度修改层
	  function  updateCrappInfo(bctlno,bctlname,maxdegree)
	  {
	         setOneLiTabShow('6','5');//打开额度编辑层；
	         initValueById("CITYBRNO",bctlno);
	         initValueById("CITYBRNAME",bctlname);
	         initValueById("CTRLMAXSUM",money_chg1(maxdegree));    
	  }
	  //修改额度；
	  function  crappctrlUPdate(frm)
	  {
	   money_qu(frm.CTRLMAXSUM);
	  
	     //验证贷款金额上限
	      if(!isNull(frm.CTRLMAXSUM,"控制贷款金额上限"))
	      {
	         return false;
	      }
	      
	     
	      
	          if(!isFloat(frm.CTRLMAXSUM,"控制贷款金额上限"))
	          {
	             return false;
	          } 
	          
	         
	         
	             //修改贷款金额上限
	      var  myobj = new Object();
	      myobj.CITYBRNO=frm.CITYBRNO.value;
	      myobj.CITYBRNAME=frm.CITYBRNAME.value;
	      myobj.CTRLMAXSUM=frm.CTRLMAXSUM.value;

	      updateCrappctrlInfo(myobj);	
	  }
	  
	  //dwr 修改额度信息；
	  function  updateCrappctrlInfo(tmpObj)
	  {
	      bctlService.crtlUpdate(tmpObj,updateSuccess)
	  }
	  function updateSuccess(data)
	  {
	      if(data>0)
	      {
	      
	           jAlert('1','操作成功', '消息提示',function (setData){
	              my_search();//返回列表页面；
	           });
	         
	          
	      }
	      else
	      {
	          jAlert('1','操作失败', '消息提示',function (setData){
	              my_search();//返回列表页面；
	           });
	      }
	  }
	  
	  //重置额度信息
	  function resetCrappInfo(bctlno,bctlname)
	  {
	      var  myobj = new Object();
	      myobj.CITYBRNO=bctlno;
	      myobj.CITYBRNAME=bctlname;
	      myobj.CTRLMAXSUM="0";
	      updateCrappctrlInfo(myobj); //重置额度；
	  }
	  
	  
	  
	  //弹出部门编辑层
	  /*
	  function    showBctlEdit()
	  {
	  
	      alert($('#bctlNew').css("display"));
	      $('#bctlNew').attr('css','dd_over');
	      $('#bctlList').attr('css','dd');
	      $('#bctlUnite').attr('css','dd');
	      $('#bctlLimit').attr('css','dd');
	      
	      showOneDiv('2');
	  }
	  */
	  // 修改部门 时；展示上级的部门 和 负责人 的放大镜 
	  function   showUpOrgDiv()
	  {
	      var tmpForm=document.getElementById("bctlFormEdite");
	       //部门表头：
            var bctlTile=new Array();
            bctlTile.push('部门编号');
            bctlTile.push('部门名称');
            var brnoBackData=new Array();
            brnoBackData[0]=tmpForm.UPONEORG.value;
            //部门数据
            var bctlData=new Array();
             //加载部门数据；
               bctlService.getBctlSelectList(tmpForm.BRNO.value,function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 bctlData.push(tmpAry);
                }
                 });
                 
                 
                 var backdata;
                 
                  $('#selectUpOneOrgNo').click(function(){
                     backdata=$("form[id='bctlFormEdite'] input[id='UPONEORG']").val();
                     setData(backdata,bctlData);
                  })
                  $("form[id='bctlFormEdite'] input[id='UPONEORG']").blur(function(){
                     backdata=$("form[id='bctlFormEdite'] input[id='UPONEORG']").val();
                     setData(backdata,bctlData);
                     
                  }) 

                 
                  $('#selectUpOneOrgNo').opendiv({type:'1',width:300,height:400,titlename:bctlTile,move:1,initcheckvalue:brnoBackData,index:0},bctlData,function (data)
                  {
                        var tmpAry=data.split('@');
                         $('#UPONEORG').val(tmpAry[0]);
                         brnoBackData[0]=tmpAry[0];
                         	
                        
                  });
                   $("form[id='bctlFormEdite'] input[id='UPONEORG']").opendiv({type:'1',width:300,height:400,titlename:bctlTile,move:1,initcheckvalue:brnoBackData,index:0},bctlData,function (data)
                  {
                        var tmpAry=data.split('@');
                         $('#UPONEORG').val(tmpAry[0]);
                         brnoBackData[0]=tmpAry[0];
                         
                        
                  });
                  
         
                  
	  }
	  
	  
	  /**
	    新增部门 时；展示上级的部门 和 负责人 的放大镜 
	  **/
	  
	  function   showAddUpOrgDiv()
	  {
	  DWREngine.setAsync(false); 
	       //部门表头：
            var bctlTile=new Array();
            bctlTile.push('部门编号');
            bctlTile.push('部门名称');
            var brnoBackData=new Array();
            //部门数据
            var bctlData=new Array();
             //加载部门数据；
               bctlService.getAddBctlSelectList('46008',function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 bctlData.push(tmpAry);
                }
                 });
                 
                 
                 
                 
                 var backdata;
                 
                  $('#selectUpOneOrgNo').click(function(){
                     backdata=$("form[id='bctlFormEdite'] input[id='UPONEORG']").val();
                     setData(backdata,bctlData);
                  })
                  $("form[id='bctlFormEdite'] input[id='UPONEORG']").blur(function(){
                    
                     backdata=$("form[id='bctlFormEdite'] input[id='UPONEORG']").val();
                     setData(backdata,bctlData);
                     
                  }) 

                 
                  $('#selectUpOneOrgNo').opendiv({type:'1',width:300,height:400,titlename:bctlTile,move:1,initcheckvalue:brnoBackData,index:0},bctlData,function (data)
                  {
                        var tmpAry=data.split('@');
                         $('#UPONEORG').val(tmpAry[0]);
                         brnoBackData[0]=tmpAry[0];
                  });
                   $("form[id='bctlFormEdite'] input[id='UPONEORG']").opendiv({type:'1',width:300,height:400,titlename:bctlTile,move:1,initcheckvalue:brnoBackData,index:0},bctlData,function (data)
                  {
                        var tmpAry=data.split('@');
                         $('#UPONEORG').val(tmpAry[0]);
                         brnoBackData[0]=tmpAry[0];
                         
                        
                  });
                 
                 
                 /**
                 
                 
                  $('#selectUpOneOrgNo').opendiv({type:'1',width:300,height:400,titlename:bctlTile,move:1,initcheckvalue:brnoBackData,index:0},bctlData,function (data)
                  {
                        var tmpAry=data.split('@');
                         $('#UPONEORG').val(tmpAry[0]);
                         brnoBackData[0]=tmpAry[0];
                  });
                  
                  **/
                  
         
           
                  
	  }
	  
	  //为负责人添加数据
	  function  addBrintSelectData()
	  {
	  
	        var tmpForm=document.getElementById("setBctlBrinitForm");
	       // 负责人
            var  titleAry = new Array();  
          
            titleAry.push('员工号');
            titleAry.push('员工名称');
            var checkvalue=new Array();//回显数组
            
            if(tmpForm.BRINITnum.value.length>0)
            {
                checkvalue=tmpForm.BRINITnum.value.split('@');
            }
            
            
            
            
            
                //加载数据；
               bctlService.getBrinitList(tmpForm.bctlNumber.value,function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 empData.push(tmpAry);
                 
                }
                 });
                 
                 
                 
                 $('#selectBrinit').click(function(){
                     backdata=$("form[id='setBctlBrinitForm'] input[id='BRINITnum']").val();
                     setData(backdata,empData);
                  })
                  $("form[id='setBctlBrinitForm'] input[id='BRINITnum']").blur(function(){
                     backdata=$("form[id='setBctlBrinitForm'] input[id='BRINITnum']").val();
                     setData(backdata,empData);
                     
                  })
                 
                 
                  $('#selectBrinit').opendiv({type:'2',width:400,titlename:titleAry,move:1,initcheckvalue:checkvalue,index:0},empData,function (data)
                  {
                       var crkindStr="";
                       if(data.length>2)
                       {
                       var tmpAry1=data.split("#");
                       var tmpAry2;
                       for(var i=0;i<tmpAry1.length;i++)
                       {
                            tmpAry2=tmpAry1[i].split("@");
                            crkindStr+=tmpAry2[0]+'@';
                            checkvalue.push(tmpAry2[0]);
                       }
                          checkvalue=new Array();
                           tmpForm.BRINITnum.value=crkindStr.substr(0,crkindStr.length-1);
                       }
                       else
                       {
                           tmpForm.BRINITnum.value=crkindStr;
                       }
                       
                        
                  });
                  
                  
                  $("form[id='setBctlBrinitForm'] input[id='BRINITnum']").opendiv({type:'2',width:400,titlename:titleAry,move:1,initcheckvalue:checkvalue,index:0},empData,function (data)
                  {
                       var crkindStr="";
                       if(data.length>2)
                       {
                       var tmpAry1=data.split("#");
                       var tmpAry2;
                       for(var i=0;i<tmpAry1.length;i++)
                       {
                            tmpAry2=tmpAry1[i].split("@");
                            crkindStr+=tmpAry2[0]+'@';
                            checkvalue.push(tmpAry2[0]);
                       }
                          checkvalue=new Array();
                           tmpForm.BRINITnum.value=crkindStr.substr(0,crkindStr.length-1);
                       }
                       else
                       {
                           tmpForm.BRINITnum.value=crkindStr;
                       }
                       
                        
                  });
	  }
	  
	  
	  
	  //智能查询提交
	  function intelligentQuery()
	  {
	       document.getElementById('queryZhineng').submit();
	  }
	 
	  
	  //设置searchFlag的值
	  function setsearchFlagVal(tmpVal)
	  {
	      searchFlag=tmpVal;
	  }

 
     //重置部门合并的表单
      function   removeBctlReset()
      {
           setFormNull("removeBctlForm");  
      }
      //撤销部门时加载数据；
      function addDataForRemove(){
        
         //部门表头：
            var removeTile=new Array();
            removeTile.push('部门编号');
            removeTile.push('部门名称');
            //部门数据
           
             //加载部门数据；
               bctlService.getAllBctl(function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 removeData.push(tmpAry);
                }
                 });
                 
                 
                    var backdata;
                  $('#selectRemoveBno').click(function(){
                     backdata=$("form[id='removeBctlForm'] input[id='name1Val']").val();
                     setData(backdata,removeData);
                  })
                  $("form[id='removeBctlForm'] input[id='name1Val']").blur(function(){
                     backdata=$("form[id='removeBctlForm'] input[id='name1Val']").val();
                     setData(backdata,removeData);
                     
                  }) 
                 
                  $('#selectRemoveBno').opendiv({type:'1',width:300,height:400,titlename:removeTile,move:1},removeData,function (data)
                  {
                         var tmpAry=data.split('@');
                         $('#name1').val(tmpAry[0]);  
                         $('#name1Val').val(tmpAry[1]); 
                         
                         addSaveData();
                  });
                  
                  $("form[id='removeBctlForm'] input[id='name1Val']").opendiv({type:'1',width:300,height:400,titlename:removeTile,move:1},removeData,function (data)
                  {
                         var tmpAry=data.split('@');
                         $('#name1').val(tmpAry[0]);  
                         $('#name1Val').val(tmpAry[1]); 
                         
                         addSaveData();
                  });
                  
                  
                  
           /*
                  
            //部门表头：
            var removeToTile=new Array();
            removeToTile.push('部门编号');
            removeToTile.push('部门名称');
            //部门数据
            var removeToData=new Array();
             //加载部门数据；
             var tmpFormVal1=document.getElementById("name1").value;
             alert(tmpFormVal1);
             if(tmpFormVal1=='')
             {
                 tmpFormVal1="46008";
             }
               bctlService.getBctlSelectList(tmpFormVal1,function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 removeToData.push(tmpAry);
                }
                 });
                  $('#selectRemoveToBno').opendiv({type:'1',width:300,height:400,titlename:removeToTile,move:1},removeToData,function (data)
                  {
                       var tmpStrVal=$('#name1').val();
                       
                       if(tmpStrVal=='')
                       {
                           jAlert('1','请先选择撤销部门','消息提示');
                           return false;
                       }
                        var tmpAry=data.split('@');
                         $('#name3').val(tmpAry[0]);
                  });
                  
                  */
          
      }
      
      
      
      //生成合并部门编号：
      function  getUnionList()
      {
               var  resultAry=new Array();
               var tmpFormVal1=document.getElementById("name1").value;
               bctlService.getBctlSelectList(tmpFormVal1,function (data){
               var aryCount=0;
               for(var i=0;i<data.length;i++){ 
                 var tmpAry=new Array();
                 tmpAry.push(data[i].name1);
                 tmpAry.push(data[i].name2);
                 resultAry.push(tmpAry);
                }
                 });
                return  resultAry;
      }
      
      function  addSaveData()
      {
           var tmpStrVal=$('#name1').val();
                       
                       if(tmpStrVal=='')
                       {
                           jAlert('1','请先选择撤销部门','消息提示');
                           return false;
                       }
          
                 //部门表头：
            var removeToTile=new Array();
            removeToTile.push('部门编号');
            removeToTile.push('部门名称');
            //部门数据
            removeToData=getUnionList();
            
            
             $('#selectRemoveToBno').click(function(){
                     backdata=$("form[id='removeBctlForm'] input[id='name3Val']").val();
                     setData(backdata,removeToData);
                  });
             $("form[id='removeBctlForm'] input[id='name3Val']").blur(function(){
                     backdata=$("form[id='removeBctlForm'] input[id='name3Val']").val();
                     setData(backdata,removeToData);
                     
             }) ;
                  
             
                  $('#selectRemoveToBno').opendiv({type:'1',width:300,height:400,titlename:removeToTile,move:1},removeToData,function (data)
                  {
                       var tmpStrVal=$('#name1').val();
                       
                       if(tmpStrVal=='')
                       {
                           jAlert('1','请先选择撤销部门','消息提示');
                           return false;
                       }
                        var tmpAry=data.split('@');
                         $('#name3').val(tmpAry[0]);
                         $('#name3Val').val(tmpAry[1]); 
                  });
                  
                  
                   $("form[id='removeBctlForm'] input[id='name3Val']").opendiv({type:'1',width:300,height:400,titlename:removeToTile,move:1},removeToData,function (data)
                  {
                       var tmpStrVal=$('#name1').val();
                       
                       if(tmpStrVal=='')
                       {
                           jAlert('1','请先选择撤销部门','消息提示');
                           return false;
                       }
                        var tmpAry=data.split('@');
                         $('#name3').val(tmpAry[0]);
                         $('#name3Val').val(tmpAry[1]); 
                  });
                  
                  
                  
                  
                  
      }
      
      //设置部门负责人；
      function setBrinitFun(tmpBrno,tmpBrinit)
      {
      
          setOneLiTabShow('6','6');//打开修改部门负责人层；
          var tmpForm=document.getElementById("setBctlBrinitForm");
          tmpForm.BRINITnum.value=tmpBrinit;
          tmpForm.bctlNumber.value=tmpBrno;
          addBrintSelectData();//为负责人 放大镜添加数据；
          
      }
      
     //指定部门负责人提交；
     function setBrinitFormSubmit(frm)
     {
           if(!(isNull(frm.BRINITnum,"部门负责人"))) {
		              return false;
	               }
	               
	        if(!validateData(frm.BRINITnum,empData,0,"部门负责人")){
	           return false;
             }
	        
	        bctlService.setBrinitVal(frm.bctlNumber.value,frm.BRINITnum.value,function (data)
	        {
	            if(data>0)
	            {
	                jAlert('1','指定成功','消息提示',function (){
	                    my_search();
	                });
	            }
	            
	            else
	            {
	                jAlert('1','指定失败','消息提示',function (){
	                    my_search();
	                });
	            }
	        })
     }
      
      
				
</SCRIPT>
</HEAD>
<BODY onload="setsession_jsp('');">
<DIV style="WIDTH: 100%; HEIGHT: auto" id=table class=table>
<DIV class=repeat>
<UL id=tabs class=tabs>
<LI id=bctlList value=1 jQuery1362935592268="1"><A style="DISPLAY: block" id=link1 class=dd onclick="setsearchFlagVal(1);setsession_jsp('');">部门列表</A> </LI>
<LI id=bctlUnite value=2 jQuery1362935592268="2"><A style="DISPLAY: none" id=link2 class=dd></A></LI>
<LI id=bctlUnite value=3 jQuery1362935592268="3"><A id=link3 class=dd onclick=" removeBctlReset();addDataForRemove();">部门合并</A> </LI>
<LI id=bctlLimit value=4 jQuery1362935592268="4"><A id=link4 class=dd onclick="setsearchFlagVal(2);setsession_jsp('');">部门贷款额度控制</A> </LI>
<LI id=edEditeLi value=5 jQuery1362935592268="5"><A style="DISPLAY: none" id=link5 class=dd>部门贷款额度控制</A> </LI>
<LI id=edEditeLi value=6 jQuery1362935592268="6"><A style="DISPLAY: block" id=link6 class=dd_over>指定部门负责人</A> </LI></UL></DIV>
<DIV class=tablecard><!-- 部门列表 -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div1 class=nr value="1"><!-- 操作按钮 -->
<DIV class=divsreatch><INPUT class=divadd onclick="bctlEditeFun('','','','','','','','','');" value=部门新增 type=button> 
<DIV class=sreatch>
<FORM id=queryZhineng method=post name=queryZhineng action=/loan/htgl/bctl.do?method=bctlList>智能查询: <INPUT id=search name=search type=text> <INPUT id=btnsreatch onclick=my_search(); name=btnsreatch value="搜 索" type=button> </FORM></DIV></DIV><!-- 内容展示 -->
<DIV id=bctlListShowDiv class=divlist>
<TABLE id=datalist>
<TBODY>
<TR>
<TH onclick="setsession_jsp('brno')">部门代码 </TH>
<TH onclick="setsession_jsp('BRNAME')">部门名称 </TH>
<TH onclick="setsession_jsp('Brinit')">部门负责人 </TH>
<TH onclick="setsession_jsp('BRTEL')">联系电话 </TH>
<TH onclick="setsession_jsp('')">操作 </TH></TR>
<TR class=js ondblclick="bctlEditeFun('46002','郑州办事处','0005@1037','155515694575','','河南郑州','46001','450000')" tmpClass="js">
<TD>46002</TD>
<TD>郑州办事处</TD>
<TD>常晓华@任可欣</TD>
<TD>155515694575</TD>
<TD><A onclick="bctlEditeFun('46002','郑州办事处','0005@1037','155515694575','','河南郑州','46001','450000')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46002')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46002','0005@1037')" href="#">ָ��������</A></TD></TR>
<TR class=os ondblclick="bctlEditeFun('46003','南阳办事处','1036@1019','63252010','','河南南阳','46001','430000')" tmpClass="os">
<TD>46003</TD>
<TD>南阳办事处</TD>
<TD>李彬@牛燕飞</TD>
<TD>63252010</TD>
<TD><A onclick="bctlEditeFun('46003','南阳办事处','1036@1019','63252010','','河南南阳','46001','430000')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46003')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46003','1036@1019')" href="#">ָ��������</A></TD></TR>
<TR class=js ondblclick="bctlEditeFun('46004','测试部门','','62351000','','','46002','450000')" tmpClass="js">
<TD>46004</TD>
<TD>测试部门</TD>
<TD></TD>
<TD>62351000</TD>
<TD><A onclick="bctlEditeFun('46004','测试部门','','62351000','','','46002','450000')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46004')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46004','')" href="#">ָ��������</A></TD></TR>
<TR class=os ondblclick="bctlEditeFun('46005','研发部','1057@1045','13243333333','','河南郑州','46001','450000')">
<TD>46005</TD>
<TD>研发部</TD>
<TD>张集@马寒</TD>
<TD>13243333333</TD>
<TD><A onclick="bctlEditeFun('46005','研发部','1057@1045','13243333333','','河南郑州','46001','450000')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46005')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46005','1057@1045')" href="#">ָ��������</A></TD></TR>
<TR class=js ondblclick="bctlEditeFun('46008','研发分部2','1056','13222222222','','河南郑州','46005','333333')" tmpClass="js">
<TD>46008</TD>
<TD>研发分部2</TD>
<TD>张笑</TD>
<TD>13222222222</TD>
<TD><A onclick="bctlEditeFun('46008','研发分部2','1056','13222222222','','河南郑州','46005','333333')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46008')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46008','1056')" href="#">ָ��������</A></TD></TR>
<TR class=os ondblclick="bctlEditeFun('46009','财务部','1058','13222222222','','河南郑州','46008','233333')">
<TD>46009</TD>
<TD>财务部</TD>
<TD>李全杰</TD>
<TD>13222222222</TD>
<TD><A onclick="bctlEditeFun('46009','财务部','1058','13222222222','','河南郑州','46008','233333')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46009')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46009','1058')" href="#">ָ��������</A></TD></TR>
<TR class=js ondblclick="bctlEditeFun('46010','客服部','1069','12322222222','31','河南郑州','46009','222222')" tmpClass="js">
<TD>46010</TD>
<TD>客服部</TD>
<TD>曹操</TD>
<TD>12322222222</TD>
<TD><A onclick="bctlEditeFun('46010','客服部','1069','12322222222','31','河南郑州','46009','222222')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46010')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46010','1069')" href="#">ָ��������</A></TD></TR>
<TR class=os ondblclick="bctlEditeFun('46011','测试部','1074','12322222222','22','河南郑州','46009','122222')">
<TD>46011</TD>
<TD>测试部</TD>
<TD>李林</TD>
<TD>12322222222</TD>
<TD><A onclick="bctlEditeFun('46011','测试部','1074','12322222222','22','河南郑州','46009','122222')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46011')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46011','1074')" href="#">ָ��������</A></TD></TR>
<TR class=js ondblclick="bctlEditeFun('46012','ceshi','1077','1509354608','','asdf','46002','654153')" tmpClass="js">
<TD>46012</TD>
<TD>ceshi</TD>
<TD>刘邦</TD>
<TD>1509354608</TD>
<TD><A onclick="bctlEditeFun('46012','ceshi','1077','1509354608','','asdf','46002','654153')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46012')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46012','1077')" href="#">ָ��������</A></TD></TR>
<TR class=os ondblclick="bctlEditeFun('46013','测删部门2','','13222222222','','河南郑州','46010','233333')" tmpClass="os">
<TD>46013</TD>
<TD>测删部门2</TD>
<TD></TD>
<TD>13222222222</TD>
<TD><A onclick="bctlEditeFun('46013','测删部门2','','13222222222','','河南郑州','46010','233333')" href="#">�༭</A>&nbsp;<A onclick="delSelectedBctl('46013')" href="#">ɾ��</A>&nbsp;<A onclick="setBrinitFun('46013','')" href="#">ָ��������</A></TD></TR>
<TR class=page>
<TD colSpan=20>
<DIV style="FLOAT: left; align: left">&nbsp;ÿҳ��ʾ<SELECT id=pageSize onchange="javascript:goSearch('1', this.value)"><OPTION value=5>5</OPTION><OPTION selected value=10>10</OPTION><OPTION value=15>15</OPTION><OPTION value=20>20</OPTION><OPTION value=25>25</OPTION><OPTION value=50>50</OPTION><OPTION value=100>100</OPTION></SELECT>���¼</DIV>
<DIV style="FLOAT: right; align: right">��1ҳ/��2ҳ ��11���¼<A style="TEXT-DECORATION: none" href="javascript:goSearch('1','10')">&nbsp;��ҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('2','10')">&nbsp;��һҳ</A><A style="TEXT-DECORATION: none" href="javascript:goSearch('2','10')">&nbsp;βҳ</A>&nbsp;��ת��:<SELECT id=pageNo onchange=goSearch(this.value,10) name=pageNo><OPTION selected value=1>1</OPTION><OPTION value=2>2</OPTION></SELECT></DIV></TD></TR></TBODY></TABLE></DIV></DIV><!-- 部门新增 -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div2 class=nr value="2"><!-- 部门编辑层 -->
<DIV style="DISPLAY: block" id=bctlEditeDiv>
<FORM id=bctlFormEdite method=post name=bctlFormEdite action=#>
<DIV class=divsmalltable>
<TABLE id=t39>
<TBODY>
<TR>
<TD class=jstd>部门名称： </TD>
<TD class=ostd><LABEL><INPUT id=BRNO name=BRNO type=hidden> <INPUT id=BRNAME name=BRNAME maxLength=30 type=text><FONT color=red>*</FONT> </LABEL></TD></TR>
<TR style="DISPLAY: none" class=ostr>
<TD class=jstd>负责人： </TD>
<TD class=ostd><INPUT id=BRINIT name=BRINIT readOnly type=text> </TD></TR>
<TR>
<TD class=jstd>上级部门： </TD>
<TD class=ostd><INPUT id=UPONEORG name=UPONEORG value=46008 type=text><FONT color=red>*</FONT><INPUT id=selectUpOneOrgNo class=magnifier_a_input type=button> </TD></TR>
<TR class=ostr>
<TD class=jstd>联系地址： </TD>
<TD class=ostd><LABEL><INPUT id=BRADRS1 name=BRADRS1 maxLength=30 type=text> </LABEL></TD></TR>
<TR>
<TD class=jstd>邮政编码： </TD>
<TD class=ostd><LABEL><INPUT id=AFCBV name=AFCBV maxLength=6 type=text><FONT color=red>*</FONT> </LABEL></TD></TR>
<TR class=ostr>
<TD class=jstd>联系电话： </TD>
<TD class=ostd><LABEL><INPUT id=BRTEL name=BRTEL type=text><FONT color=red>*</FONT> </LABEL></TD></TR>
<TR>
<TD class=jstd>传真： </TD>
<TD class=ostd><LABEL><INPUT id=BRFAX name=BRFAX type=text> </LABEL></TD></TR>
<TR class=ostr>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT id=bctlAddBtn class=btnok onclick=checkSubmit(this.form) name=bctlAddBtn value=提交 type=button> <INPUT id=cancelBtn class=btncel onclick=my_search(); name=cancelBtn value=取消 type=button> </DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript>addformcolor('t39');</SCRIPT>
</FORM></DIV></DIV><!-- 部门合并 -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div3 class=nr value="3"><!-- 合并操作页面 -->
<DIV>
<FORM id=removeBctlForm method=post name=removeBctlForm action=/loan/htgl/bctl.do?method=bctlUnion>
<DIV class=divsmalltable>
<TABLE id=t37>
<TBODY>
<TR>
<TD class=jstd>撤销部门号码： </TD>
<TD class=ostd><INPUT id=name1 name=name1 type=hidden> <INPUT id=name1Val name=name1Val type=text><FONT color=red>*</FONT><INPUT id=selectRemoveBno class=magnifier_a_input type=button> </TD></TR>
<TR class=ostr>
<TD class=jstd>合并部门号码： </TD>
<TD class=ostd align=left><INPUT id=name3 name=name3 type=hidden> <INPUT id=name3Val name=name3Val type=text><FONT color=red>*</FONT><INPUT id=selectRemoveToBno class=magnifier_a_input type=button> </TD></TR>
<TR>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT class=btnok onclick=my_check(this.form) name=Submit1 value=提交 type=button> <INPUT class=btncel name=Reset value=重置 type=reset> </DIV></TD></TR><INPUT style="COLOR: red" id=showDoing class=input1 name=message readOnly size=20px type=hidden> </TBODY></TABLE></DIV>
<SCRIPT language=javascript>addformcolor('t37');</SCRIPT>
</FORM></DIV></DIV><!-- 部门额度控制 -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div4 class=nr value="4"><!-- 操作按钮 -->
<DIV class=divsreatch>
<DIV class=sreatch>智能查询: <INPUT id=edsearch name=edsearch type=text> <INPUT id=edsreatchbtn onclick=my_search(); name=edsreatchbtn value="搜 索" type=button> </DIV></DIV><!-- 部门额度列表 -->
<DIV id=edListDiv class=divlist>
<TABLE>
<TBODY>
<TR>
<TH onclick="setsession_jsp('CITYBRNO')">部门号</TH>
<TH onclick="setsession_jsp('CITYBRNAME')">部门名称</TH>
<TH style="WIDTH: 23%" onclick="setsession_jsp('CTRLMAXSUM')">控制贷款金额上限（元）</TH>
<TH onclick="setsession_jsp('')">操作</TH></TR></TBODY></TABLE></DIV></DIV><!--部门额度编辑层  -->
<DIV style="WIDTH: 100%; DISPLAY: none; HEIGHT: 100%" id=div5 class=nr value="5">
<FORM id=crappctrlEdite method=post name=crappctrlEdite action="">
<DIV class=divsmalltable>
<TABLE id=t38>
<TBODY>
<TR>
<TD class=jstd>部门编号： </TD>
<TD class=ostd><LABEL><INPUT id=CITYBRNO name=CITYBRNO readOnly value=46008 type=text> </LABEL></TD></TR>
<TR class=ostr>
<TD class=jstd>部门名称： </TD>
<TD class=ostd><LABEL><INPUT id=CITYBRNAME name=CITYBRNAME readOnly value=总部 type=text> </LABEL></TD></TR>
<TR>
<TD class=jstd>控制贷款金额上限： </TD>
<TD class=ostd><LABEL><INPUT id=CTRLMAXSUM onchange=money_chg(this) name=CTRLMAXSUM maxLength=14 value=9000000 type=text>元 </LABEL></TD></TR>
<TR class=ostr>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT class=btnok onclick=crappctrlUPdate(this.form) value=修改 type=button> <INPUT class=btncel onclick=my_search(); value=取消 type=button> </DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript>addformcolor('t38');</SCRIPT>
</FORM></DIV><!--指定部门负责人  -->
<DIV style="WIDTH: 100%; DISPLAY: block; HEIGHT: 100%" id=div6 class=nr value="6">
<FORM id=setBctlBrinitForm method=post name=setBctlBrinitForm action="">
<DIV class=divsmalltable>
<TABLE id=t388>
<TBODY>
<TR>
<TD class=jstd>负责人： </TD>
<TD class=ostd><LABEL><INPUT id=BRINITnum name=BRINITnum value=0005@1037 type=text jQuery1362935592268="8"><INPUT id=selectBrinit class=magnifier_a_input type=button jQuery1362935592268="7"> <INPUT id=bctlNumber name=bctlNumber value=46002 type=hidden> </LABEL></TD></TR>
<TR class=ostr>
<TD class=jstd colSpan=2>
<DIV class=operation><INPUT class=btnok onclick=setBrinitFormSubmit(this.form) value=修改 type=button> <INPUT class=btncel onclick=my_search(); value=取消 type=button> </DIV></TD></TR></TBODY></TABLE></DIV>
<SCRIPT language=javascript>addformcolor('t388');</SCRIPT>
</FORM></DIV></DIV></DIV></BODY>
</html>
